<template>
  <div class="components-container">
    <div class="header-form">
        <div class="layui-inline" v-if="isShowBuessnum? true : !this.IsSendJoint">
            <label class="layui-form-label">证件号码</label>
            <div class="layui-inline">
            <el-input v-model="searchData.JPMCARDNO" placeholder="请输入证件号码" @keydown.enter.native="btnSearch"></el-input>
            </div>
        </div>
        <div class="layui-inline" v-if="isShowBuessnum? true : !this.IsSendJoint">
            <label class="layui-form-label">逝者姓名</label>
            <div class="layui-inline">
            <el-input v-model="searchData.JPMNAME" placeholder="请输入逝者姓名" @keydown.enter.native="btnSearch"></el-input>
            </div>
        </div>
        <el-button type="primary" @click="btnSearch" :loading="this.$store.state.isloading">证照获取</el-button>
        <el-button type="warning" @click="btnRepeat">重置</el-button>
    </div>
    <div class="text" ref="text">
        
    </div>
  </div>
</template>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/common.scss";
    .text{
        margin-top: 50px;
        margin-left: 30px;
        max-width: 800px;
        max-height: 600px;
        word-break:break-all;
        overflow-y: scroll;
        // border: 1px solid #999999;
        // box-shadow: 0 0 10px #666666;
    }
    // .text::-webkit-scrollbar {
    //     display: none;
    // }
</style>
<script>
import apiBase from "@/api/apiBase.js";
// import { formatDate, timeStringToDate } from "@/utils/date.js";
import { manage } from "@/mixins/managePage.js";
import sweetModal from "@/components/sweetModal";
export default {
  name: "jointRegistrationConclud",
  mixins: [manage],
  data() {
    return {
      searchData: {
        JPMCARDNO: null,
        JPMNAME: null
      },
    };
  },
  methods: {
        //查询条件重置
    btnRepeat() {
      this.searchData = {
        JPMCARDNO: null,
        JPMNAME: null
      };
      this.$refs.text.innerHTML = '';
    },

    btnSearch() {
        let data = JSON.parse(JSON.stringify(this.searchData));
        apiBase.DoService(
            data,
            apiBase.getApiAdress().JointRegistration.GetYztb,
            res => {
                this.$refs.text.innerHTML = res.data.content;
            }
        );
    },
   
  },

  components: {
    sweetModal
  },
  created() {
    
  }
};
</script>

